package com.liveneo.adapter.mobile.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.liveneo.adapter.base.entity.PrpmLossFit;
import com.liveneo.adapter.base.mapper.PrpmLossFitMapper;
import com.liveneo.adapter.mobile.service.LossFitService;

@Service
public class LossFitServiceImpl implements LossFitService {
    @Autowired
    private PrpmLossFitMapper prpmLossFitMapper;

    @Override
    public int deleteLossFitList(String lossUuid) throws Exception {
        // TODO Auto-generated method stub
        return prpmLossFitMapper.deleteByLossUuid(lossUuid);
    }

    @Override
    public List<PrpmLossFit> getLossFitList(String lossUuid) throws Exception {
        // TODO Auto-generated method stub
        return prpmLossFitMapper.selectByLossUuid(lossUuid);
    }

    @Override
    public int saveLossFitList(List<PrpmLossFit> record) throws Exception {
        // TODO Auto-generated method stub
        return prpmLossFitMapper.insertMoreRows(record);
    }
}
